//Source file: D:\\test\\com\\ce\\pms\\charge\\model\\BankDomain.java

package com.ce.pms.charge.model;

import javax.persistence.*;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:划帐银行 关联数据表:FEE_BANK
 */
@Entity
@Table(name = "FEE_BANK")
public class BankDomain implements IDomainObject{
	public static final transient String IN = "IN_"; //输入文件前缀
	public static final transient String OUT = "OUT_"; //输出文件前缀

	/**
	 * 关键字
	 */
	@Id
	@GeneratedValue
	@Column(name = "BANK_ID", nullable = false)
	private Long keyword;

	/**
	 * 银行名称
	 */
	@Column(name = "BANK_NAME", length = 30, nullable = false)
	private String bankName;

	/**
	 * 银行代码
	 */
	@Column(name = "BANK_CODE", length = 50, nullable = false)
	private String bankCode;

	/**
	 * 出盘文件前缀
	 */
	@Column(name = "O_FILE_PREFIX", length = 50, nullable = false)
	private String outFilePrefix;

	/**
	 * 回盘文件前缀
	 */
	@Column(name = "I_FILE_POSTFIX", length = 50, nullable = false)
	private String inFilePrefix;

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 300)
	private String remark;

	/**
	 * 系统信息
	 */
	@Embedded
	private SysInfo sysInfo;

	/**
	 * @roseuid 48757D10030D
	 */
	public BankDomain() {

	}

	/**
	 * mini construtc
	 * @param bankName 银行名称
	 * @param bankCode 银行代码
	 * @param filePrefix 出盘文件前缀
	 * @param filePrefix2 回盘文件前缀
	 * @param sysInfo 系统信息
	 */
	public BankDomain(String bankName, String bankCode, String filePrefix,
			String filePrefix2, SysInfo sysInfo) {
		this.bankName = bankName;
		this.bankCode = bankCode;
		outFilePrefix = filePrefix;
		inFilePrefix = filePrefix2;
		this.sysInfo = sysInfo;
	}

	public String getBankCode() {
		return bankCode;
	}

	public void setBankCode(String bankCode) {
		this.bankCode = bankCode;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getInFilePrefix() {
		return inFilePrefix;
	}

	public void setInFilePrefix(String filePrefix) {
		inFilePrefix = filePrefix;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getOutFilePrefix() {
		return outFilePrefix;
	}

	public void setOutFilePrefix(String filePrefix) {
		outFilePrefix = filePrefix;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
